#include <iostream>

int main()
{
    int grade = 90;
    if(grade > 85) {
        std::cout << "A" << std::endl;
    }
    else if(grade > 60 && grade <= 85) {
        std::cout << "B" << std::endl;
    }
    else {
        std::cout << "C" << std::endl;
    }
    return 0;
}
